package cn.com.dhcc.adam.spring.bean;

import cn.com.dhcc.adam.spring.Dao;
import cn.com.dhcc.adam.spring.DaoImpl;
import cn.com.dhcc.adam.spring.Service;
import cn.com.dhcc.adam.spring.ServiceImpl;

public class ServiceFactory {
	
	private static ServiceImpl srv = new ServiceImpl();
	static{
		Dao dao = new DaoImpl();
		srv.setDao(dao);
	}
	
	public Service getService(){
		return srv;
	}
}
